home *** CD-ROM | disk | FTP | other *** search
- Path: qualcomm.com!usenet
- From: nabbasi@qualcomm.com (Nasser Abbasi)
- Newsgroups: comp.lang.c++
- Subject: Re: Why C++/G++/?++
- Date: 24 Jan 1996 21:25:18 GMT
- Organization: QUALCOMM
- Message-ID: <4e683u$t75@qualcomm.com>
- References: <DLFosu.F6s@Federal.Unisys.COM>
- NNTP-Posting-Host: nabbasi.qualcomm.com
- Mime-Version: 1.0
- X-Newsreader: WinVN 0.93.14
-
- In article <DLFosu.F6s@Federal.Unisys.COM>, fergusoc says...
- >
- >I am not trying to start a flame war so please don't but I must wonder
- >outloud
- >why one would choose C++ over something like Ada95? It sure as heck
- >isn't because C++ is more mature. Hell, its changing (or has done so
- >historically)
-
- The simple answer to this is that becuase it is the language used
- at work. The Boss would not like it very much if one goes and use Ada
- while every one else in the project is coding C++.
-
- I have been studying Ada95 for some time, (in my spare time since I have
- to use C++ at work). and I find Ada more natural and easier to
- understand.
-
- I find in C++, most of the time is spend in trickery things, (just like
- with C), people can make lots of money in C++, mostly becuase they know
- how to avoid the pitfalls of C++.
-
- programming in C++ is like having to drive in crowded twisted street with
- lots of cars zooming around you at high speed, you spend most of your
- time and energy trying to avoid being hit or hitting others and less on
- where you are heading to.
-
- I can give a piece of C++ code and ask a number of strong C++ programmer
- s to tell me how many constructors calls are being made, and most likely
- there will be 3 or 4 different answers..you need to watch for many things
- in C++, temporary objects all over the place, copy constructors,
- side effects of constructors, which casting to use, inlining
- with static data problems, memory leaks, exeptions are not as natural
- as in Ada, class having the role of being a type and module, when to
- use and refernce and when to use pointers, uses of static in C++ , and
- with the new keywords being added in C++ such as explicit, and new
- castings being added (static, dynamic, and what else? 4 or 5 of them)
- and many zillion others annoying things.
-
- The bottom like IMHO is that C++ is a tricky language, but it is well
- worth it to know well for job security :)
-
- Nasser
-
-